home *** CD-ROM | disk | FTP | other *** search
- DATE
-
- Displays or sets the system date and/or time.
-
- Format
-
- DATE [<day>] [<date>] [<time>] [TO | VER <filename>]
-
- Template
-
- DAY,DATE,TIME,TO=VER/K
-
- Location
-
- C:
-
- DATE with no argument displays the currently set system time and date,
- including the day of the week. Time is displayed using a 24-hour clock.
-
- DATE <date> sets only the date. The format for entry and display of <date> is
- DD-MMM-YY (day-month-year). The hyphens between the arguments are required. A
- leading zero in the date is not necessary. The number or the first three
- letters of the month (in English) must be used, as well as the last two
- digits of the year.
-
- If the date is already set, you can reset it by specifying a day name. You
- can also use tomorrow or yesterday as the <day> argument. You cannot specify
- a day name to change the date to more than seven days into the future.
-
- DATE <time> sets the time. The format for entry and display of <time> is
- HH:MM:SS (hours:minutes:seconds). Seconds is optional.
-
- If your Amiga does not have a battery backed-up hardware clock and you do not
- set the date, when the system boots it sets the date to the date of the most
- recently created file on the boot disk.
-
- If you specify the TO or VER option, followed by a file name, the output of
- the DATE command is sent to that file, overwriting any existing contents.
-
- Adjustments made with DATE only change the software clock and do not survive
- powering off the system. To set the battery backed-up hardware clock from the
- Shell, you must set the date and use SETCLOCK SAVE.
-
- Although DATE accepts and displays the date and time in a single format,
- programs such as Clock display the date and time according to your Locale
- country setting.
-
- Example 1:
-
- 1> DATE
-
- 6-Sep-92
-
- Example 2:
-
- 1> DATE 6-sep-92
-
- sets the date to September 6, 1992. The time is not reset.
-
- Example 3:
-
- 1> DATE tomorrow
-
- resets the date to one day ahead.
-
- Example 4:
-
- 1> DATE TO Fred
-
- sends the current date to the file Fred.
-
- Example 5:
-
- 1> DATE 23:00
-
- sets the current time to 11:00 p.m.
-
- Example 6:
-
- 1> DATE 1-jan-02
-
- sets the date to January 1st, 2002. The earliest date you can set is January
- 1, 1978.
-